/**
 * createby : JinxLbj
 * date : 2018/8/10
 * desc : 封装进程类
 **/

package com.example.demo.biz.project.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProcessEntity {

    private Process process;

    private String processKey;

    private List<Long> pid;

    private String runningCmd;

    private Date runningTime;

    @Override
    public String toString(){
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("processKey : ");
        stringBuilder.append(processKey);
        stringBuilder.append(", pid : ");
        stringBuilder.append(pid);
        stringBuilder.append(", runningTime : ");
        stringBuilder.append(runningTime);
        stringBuilder.append(", runningCmd : ");
        stringBuilder.append(runningCmd);
        return stringBuilder.toString();
    }

}
